<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

<%@ page import="DBController.*" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>

<%
DBConnector dbConn = DBConnector.getInstance();
List<country> countryList = dbConn.getCountries();
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>My DB</title>

</head>

<body>
<label>Country<span class="rq"> * </span></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="countryName">
<%for(country countryObj : countryList){%>
<option value="<%=countryObj.getName()%>"><%=countryObj.getName()%></option>
<%}%>
</select>
</body>

</html>